<?php

use Illuminate\Support\Facades\Route;

Route::group(['namespace' => 'Auth'], function () {
    Route::post('/logout', 'AuthController@logout');
    Route::get('/users/logged', 'AuthController@loggedUser');
    Route::get('/users/logged/permissions', 'AuthController@loggedUserPermission');

    Route::get('/permissions/{permission}', 'PermissionController@hasPermission');
});